package com.neuedu.spring.controller;


import com.neuedu.spring.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {

    @Autowired   // @Autowired 替换了 @Resource注解
    UserService userService;

    public void sayController(){
        System.out.println("UserController.sayController");
        userService.sayService();
    }
}
